﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctlQ_State.ascx.cs" Inherits="Ctl_Q_State" %>
    <table style="width:100%;" cellpadding ="3" cellspacing ="0">
    <tr>
        <td  style ="font-weight :bold "   >
            Очередь заказов</td>
        <td style ="width :20px"  >
            <asp:ImageButton ID="btnClose" runat="server"  ImageUrl="~/images/close.gif" Width="16px" />
        </td>
    </tr>
    
    </table>
<table style="width:100%;">
    <tr>
        <td width="35%">
            Конструкция:</td>
        <td>
            <asp:Label ID="lblGID" runat="server" Text="Label"></asp:Label>
        </td>
    </tr>
    <tr>
        <td width="35%">
            Сторона:</td>
        <td>
            <asp:Label ID="lblLitera" runat="server" Text="Label"></asp:Label>
        </td>
    </tr>
    <tr>
        <td width="35%">
            Период:</td>
        <td>
            <asp:Label ID="lblStart" runat="server" Text="Label"></asp:Label>
            &nbsp;-&nbsp;
            <asp:Label ID="lblEnd" runat="server" Text="Label"></asp:Label>
        </td>
    </tr>
    </table>

<table style="width:100%;">
    
    
     <asp:ListView ID="lvContractSides" runat="server">
         <LayoutTemplate>                        
            <tr>
      
        <td class="grd_td_item_caption" width="50px">
            Контракт</td>
        <td class="grd_td_item_caption" width="100px">
            Статус</td>
        <td class="grd_td_item_caption">
            Клиент</td>
        <td class="grd_td_item_caption" width="70px">
            Начало</td>
        <td class="grd_td_item_caption" width="70px">
            Окончание</td>
        <td class="grd_td_item_caption" width="25px">
            &nbsp
            </td>
    </tr>
            <tr ID="itemPlaceholder" runat="server">
            </tr>
        </LayoutTemplate>        
         <ItemTemplate>      
               <tr>            
            <td class=<%#GetCssRow(Container.DataItem) %>  width="50px">
                <%# GetContract(Container.DataItem).Number%>                
            </td>
            <td class=<%#GetCssRow(Container.DataItem) %>  width="100px">
                <asp:Label ID=Label1 runat="server" Text =<%# GetStatus(Container.DataItem) %> ></asp:Label>
            </td>
            <td class=<%#GetCssRow(Container.DataItem) %> >
                <%# GetClientName(Container.DataItem)%>
                </td>
            <td class=<%#GetCssRow(Container.DataItem) %>  width="70px">
                <%# ((DateTime) Eval ("DtStart")).ToShortDateString() %>               
            </td>
            <td class=<%#GetCssRow(Container.DataItem) %>  width="70px">
                <%# ((DateTime)Eval("DtFinish")).ToShortDateString() %>               
            </td>
            <td class=<%#GetCssRow(Container.DataItem) %>  width="25px">
                <asp:Image ID=Image1 ImageUrl ="~/images/galka.gif" Visible=<%#GetIsQPref(Container.DataItem) %>  runat="server" />
            </td>
         </ItemTemplate> 
         
    </asp:ListView>   
    
</table>


